
<html>
<head>
	<title>Secret!</title>
</head>
<body>
<script type="text/javascript">
var username = "kiddie";
var message1 = "Username";
var un = prompt (message1,"");
var password = "javascript" ;
var message = "Password";
var incmess = "ACCESS DENIED!!!";
var minimizemsg = "Hi there!"
var pw = prompt (message,"");

if (un == username) {
        if (pw != password) {
          alert (incmess);
          window.open("./", "_self")
        } else {
          alert ("Well done, use this password on the challenge page!", "_self");
          window.open("dir.html", "_self")
        }
}

if (un != username) {
  alert (incmess);
  window.open("./", "_self")
}
</script>
</body>
</html>